
//api 接口 封装
import {aixos,get,post} from "./http"

export const ajax = {

    //登录
    login:(body)=>post("/react/login",body),

    //获取验证码
    getyanzhengma: (params)=>get("/react/sent",params),

    //验证码登录
    getverify: (params)=>get("/react/verify",params),

    //获取用户信息
    getuserinfo: ()=>get("/react/getuserinfo"),

    //上传头像
    uploadavatar: (body)=>post("/react/uploadavatar",body),

    //获取员工列表
    getuserlist: (params)=>get("/react/getuserlist",params),

    //删除员工数据
    deluserone: (body)=>post("/react/deluserone",body),

    //查询车辆列表
    getchelist :params=> get("/react/getchelist",params),

    //删除车辆列表
    delcheliang :params => get("/react/delcheliang",params),

    //添加车辆列表
    addche:(body)=>post("/react/addche",body),

    //修改车辆列表
    updatcheliang:(body)=>post("/react/updatcheliang",body),
    //新增员工
    register: (body)=>post("/react/register",body),

    //修改员工信息
    updateuserrole: (body)=>post("/react/updateuserrole",body),

    //上传配件验收单
    uploadanyimg: (body)=>post("/react/uploadanyimg",body),

    //配件入库
    addpeijian: (body)=>post("/react/addpeijian",body),

    //配件列表
    peijianlist:(body)=>post("/react/peijianlist",body) , 

    //安排工作车辆查询
    getanpai:(body)=>post("/react/getanpai",body),

    peijianlist:(body)=>post("/react/peijianlist",body),

    //库存渲染
    KucunList:(body)=>post("/react/KucunList",body),

    //库存渲染
    bintu:(body)=>post("/react/bintu",body),

    //获取库存数量
    getkucun:(body)=>post("/react/getkucun",body),

    //修改个人密码
    getgmima:(body)=>post("/react/getgmima",body),
    //插入出库表
    addchuku:(body)=>post("/react/addchuku",body),

    //查询出库列表
    getchulist:(parmas)=>get("/react/getchulist",parmas),

    //审核
    updatesh:(body)=>post("/react/updatesh",body),

    //获取出库详情
    getchukuone:(body)=>post("/react/getchukuone",body),

    //修改密码
    updatapassword:(body)=>post("/react/updatapassword",body),

    //添加动态
    adddonftai:(body)=>post("/react/adddonftai",body),

    //获取动态
    dongtai:()=>get("/react/dongtai"),

    //搜索获取车辆信息
    CheList:(body)=>post("/react/CheList",body),
    //获取动态
    getAlldongtai:()=>get("/react/getAlldongtai"),

    //删除单条动态
    removeOne:(body)=>post("/react/removeOne",body),

    //点赞
    addlike:(body)=>post("/react/addlike",body),

    //不喜欢
    dislike:(body)=>post("/react/dislike",body),
}